<?php get_header(); ?>

<!-- main body of #main -->
<div id="main" role="main">
    <div class="news-head">
        <section class="container">
            <h1>
                Tìm kiếm
            </h1>
            <h2>
                Keep up with the latest news, tips and features right here!
            </h2>
        </section>    
    </div>
    <section class="container">
        <div class="row">
            <div class="col-md-9">
                <ul class="news-body-content">
                    <li class="news-body-content-title">
                        <?php printf(__('Kết quả tìm kiếm cho từ khóa: %s', ''), get_search_query()); ?>
                    </li>   
                    
                    <?php
						$catid = get_query_var('cat');
						global $query_string;
						$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
						$posts = query_posts($query_string . '&posts_per_page=6&post_type=post&paged=' . $paged); ?>
                                   
                    <?php while (have_posts()) : the_post();
						?>
						<li class="news-body-content-post">
							<?php the_post_thumbnail('nsize'); ?>
							<a href="<?php the_permalink(); ?>">
								<h2><?php the_title(); ?></h2>
							</a>
							<?php the_time('M d, Y'); ?><span>|</span><?php comments_popup_link('0 bình luận', '1 bình luận', '% bình luận'); ?>
							<p>
								<?php echo get_the_excerpt(); ?>
							</p>
							<a class='read_more' href='<?php the_permalink(); ?>'>xem thêm</a>
						</li>
						<?php
					endwhile;
					wp_reset_query(); ?>
                    <div class="clearfix"></div>
                </ul>
            </div>
            <?php
                get_sidebar();
            ?>
        </div>                    
    </section>
</div>
<!-- end of div#main -->

<?php get_footer(); ?>